#Target
TgtFile = ucl

SrcFile0 = appobj
SrcFile1 = uclcomm

# App Source Paths
SrcDir = C:\softpay\ver30\HOSTSRC\UCL

AppObjects = \
	$(OBJ_DIR)\$(SrcFile0).o  \
	$(OBJ_DIR)\$(SrcFile1).o  

# Compiler Options
MkIncludes = -I $(SDS_INCLUDES) -I $(ACT_INCLUDES) -I $(SP2_INCLUDES) -I $(SERF_INCLUDES) -I $(UCL_INCLUDES) -I $(TCPIP_INCLUDES) 
COptions = $(GCOPTIONS) -D__K2__ -D_VSC -D_DEBUG -f -s int=2 -s sizeof=2 -r a4 -r a5 -K2 -o $(@)

#  Target Definition Library
$(LIB_DIR)\$(TgtFile).a : $(AppObjects)
	@echo CREATING...Module $(LIB_DIR)\$(TgtFile).a
	@$(SDS)\cmd\liber -cy $(LIB_DIR)\$(TgtFile).a $(AppObjects)


$(OBJ_DIR)\$(SrcFile0).o : $(SrcDir)\$(SrcFile0).c  
	@echo COMPILING...$(SrcFile0).c
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile0).c | fmterr.exe

$(OBJ_DIR)\$(SrcFile1).o : $(SrcDir)\$(SrcFile1).c  
	@echo COMPILING...$(SrcFile1).c
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile1).c | fmterr.exe

